package com.demonlover.oauth2.sever.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demonlover.oauth2.sever.domain.Role;
import com.demonlover.oauth2.sever.domain.RoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author  WuChao
 * @date  2020/6/3 10:50
 * @version 1.0
 */
public interface RoleMapper extends BaseMapper<Role> {
    long countByExample(RoleExample example);

    int deleteByExample(RoleExample example);

    List<Role> selectByExample(RoleExample example);

    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);
}